package com.cn.psys.activity.service;

import com.alibaba.fastjson.JSONObject;
import org.activiti.engine.repository.Model;
import org.springframework.util.MultiValueMap;

import java.io.UnsupportedEncodingException;
import java.util.List;

public interface IModelerService extends IBaseService<Model>{
    void createModel(String key,String name, String category, String descp) throws UnsupportedEncodingException;


    void saveModelXml(String modelId, MultiValueMap<String, String> values);

    void deleteModel(String modelId);

    String deployModel(String modelId) throws Exception;

    JSONObject getEditorXml(String modelId);

    List<Model> listModel();
}
